var ShaderLab = ShaderLab || {};

ShaderLab.RES =
{
    bg:"res/bg/bg.png",
    ui_left :"res/ui/ui_left.png",
    ui_right:"res/ui/ui_right.png",
    ui_left01 :"res/ui/ui_left01.png",
    ui_right01:"res/ui/ui_right01.png",
    ui_quit  :"res/ui/ui_quit.png",
    ui_quit01:"res/ui/ui_quit01.png",

    material:"res/Shaders/senca.material"
};

var RES = ShaderLab.RES;

var Sound = {
    play: function (sound_id, mLoop) {
        var res = RES[sound_id];
        if (res) {
            var loop = mLoop ? mLoop : false;
            return cc.audioEngine.playEffect(res, loop);
        } else {
            cc.log ("No " + sound_id);
            return null;
        }
    },

    playMusic: function (sound_id) {
        var res = RES[sound_id];
        if (res) {
            return cc.audioEngine.playMusic(res, true);
        } else {
            cc.log ("No " + sound_id);
            return null;
        }
    }
};